<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/styles/general.css"/>
<link rel="stylesheet" type="text/css" href="/styles/main.css" />
<link rel="stylesheet" type="text/css" href="/styles/validator.css"></link>
<script src="/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/js/formValidator.js" type="text/javascript"></script>
<script src="/js/formValidatorRegex.js" type="text/javascript"></script>
<script type="text/javascript"> 
$(document).ready(function(){
	$.formValidator.initConfig({formid:"myform",onerror:function(msg){alert(msg)}});
	$("#typename").formValidator({onshow:"请输入类型",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#tag1").formValidator({onshow:"请输入标签",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#tag2").formValidator({onshow:"请输入标签",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#tag3").formValidator({onshow:"请输入标签",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
});
</script>
<title></title>
</head>
<body>
<h1>
<span class="action-span"><a href="/types">管理类别</a></span>
<span class="action-span1">修改类别 </span>
<div style="clear:both"></div>
</h1>
<div class="main-div">
  <form action="/types/modify/" method="post" name="myform" id="myform" enctype="multipart/form-data">
  <input name='id' id='id' type="hidden" value="$id" /> 
  <table width="100%" id="general-table">
     <tr>
        <td class="label">类型：</td>
        <td>
			{form text * typename typename $info['typename']}
        </td>
        <td><div id='typenameTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">模型：</td>
        <td>
			{form select * model model $info['model'] * * $models}
        </td>
        <td><div id='modelTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">列表类型：</td>
        <td>
			{form select * linenum linenum $info['linenum'] * * $linenums}
        </td>
        <td><div id='modelTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">标题标签：</td>
        <td>
			{form radio * showtip showtip $info['showtip'] * * $showtips}
        </td>
        <td><div id='showtipTip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">标签：</td>
        <td>
			{form text * tag1 tag1 $info['tag1']}
        </td>
        <td><div id='tag1Tip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">标签：</td>
        <td>
			{form text * tag2 tag2 $info['tag2']}
        </td>
        <td><div id='tag2Tip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">标签：</td>
        <td>
			{form text * tag3 tag3 $info['tag3']}
        </td>
        <td><div id='tag3Tip' style="width:250px"></div></td>
     </tr>
     <tr>
        <td class="label">同步源：</td>
        <td>
			{form text * source source $info['source']}
        </td>
        <td><div id='source3Tip' style="width:250px"></div></td>
     </tr>
  </table>
  
   <div class="button-div">
        <input type="submit" value="&nbsp;确&nbsp;定&nbsp;" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="reset" value="&nbsp;重&nbsp;置&nbsp;" />
   </div>
      
  </form>
</div>
{template 'footer.html'}
</body>
</html>
